package com.yao.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.yao.dao.PermitMapper;
import com.yao.entity.Permit;

@Transactional
@Service
public class PermitService {

	@Autowired
	public PermitMapper permitMapper;
	
	public List<Permit> getPermit(String name){
		return permitMapper.selectAllByBlogerName(name);
	}
}
